package com.xing.asm.simple2;

public class AdiceApi {

    public void doBefore(Object[] objects) {
        System.out.println("------------begin");
        if(objects != null && objects.length == 2) {
            String name = (String) objects[0];
            Integer id = (Integer)objects[1];
            System.err.println(name);
            System.err.println(id);
        }
    }

    public void doAfter() {
        System.out.println("------------end");
    }

    public void doThrow(Throwable throwable) {

    }

}
